<?php
/**
 * @package WordPress
 * @subpackage desire
 */
?>
<?php if ( post_password_required() ) : ?>
<div id="comments">
    <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.','desire' ); ?></p>    
</div>
<?php return; endif; ?>
<?php if(have_comments()) : ?>
<div id="comments">
    <h3 id="commentstitle"><?php
    printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'desire' ),
    number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    ?></h3>
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
    <div class="commentnavigation">
        <?php previous_comments_link( '<span id="comment-previous" class="comment-nav">&laquo; '.__('Previous Comments','desire' ).'</span>'); ?>
        <?php next_comments_link('<span id="comment-next" class="comment-nav">'.__('Next Comments','desire').' &raquo;</span>'); ?>
        <div class="clear"></div>
    </div>
    <?php endif; ?>
    <ul class="commentslist"><?php wp_list_comments('type=all&callback=desire_comment_callback'); ?></ul>
</div>
<?php else:
    if ( ! comments_open() and !is_page() ) : ?>
    <div id="comments">
        <p class="nocomments"><?php _e( 'Comments are closed.','desire' ); ?></p>
    </div>
    <?php endif; ?>
<?php endif; ?>
<?php comment_form(); ?>